package com.china08.yxyapi.entity.db.questionbank;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 
 * 
 * 题库: 知识点信息
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_quesbank_knowlege", catalog = "yxy_question_bank")
public class YxyQuesbankKnowledge extends BaseEntityNoId {

    @Id
    @Column(length = 32)
    private String id;

    /** 父节点Id */
    @Column(nullable = false)
    private String parentId;

    @Column(nullable = false, columnDefinition = "int default 0 comment '是否有子节点' ")
    private Integer hasChild;

    /** 知识点所属类型：(1:章2:节 9:内容) */
    @Column(nullable = false)
    private String type;

    /** 学段 */
    @Column(columnDefinition = "varchar(10) comment '学段：1，小学；2，初中；3，高中' ", nullable = false)
    private String stage;

    /** 学科 */
    @Column(columnDefinition = "", nullable = false)
    private String subject;

    /** 知识点名称 */
    @Column(nullable = false)
    private String name;

    /** 所属等级全路径 */
    @Column(nullable = false)
    private String fullPath;

    /** 状态 0:未使用，1：使用中 */
    @Column(nullable = false, columnDefinition = "int default 1 COMMENT '0:删除，1：未删除'")
    private Integer status;

    @Column(columnDefinition = "int default 5 comment '试题的星级' ")
    private Integer star;// 知识点星级

    /** 试题是否展示 0否 1是 */
    @Column(nullable = false)
    private Integer isView = 1;

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the parentId
     */
    public String getParentId() {
        return parentId;
    }

    /**
     * @param parentId
     *            the parentId to set
     */
    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    /**
     * @return the hasChild
     */
    public Integer getHasChild() {
        return hasChild;
    }

    /**
     * @param hasChild
     *            the hasChild to set
     */
    public void setHasChild(Integer hasChild) {
        this.hasChild = hasChild;
    }

    /**
     * @return the type
     */
    public String getType() {
        return type;
    }

    /**
     * @param type
     *            the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * @return the stage
     */
    public String getStage() {
        return stage;
    }

    /**
     * @param stage
     *            the stage to set
     */
    public void setStage(String stage) {
        this.stage = stage;
    }

    /**
     * @return the subject
     */
    public String getSubject() {
        return subject;
    }

    /**
     * @param subject
     *            the subject to set
     */
    public void setSubject(String subject) {
        this.subject = subject;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the fullPath
     */
    public String getFullPath() {
        return fullPath;
    }

    /**
     * @param fullPath
     *            the fullPath to set
     */
    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }

    /**
     * @return the status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status
     *            the status to set
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return the star
     */
    public Integer getStar() {
        return star;
    }

    /**
     * @param star
     *            the star to set
     */
    public void setStar(Integer star) {
        this.star = star;
    }

    public Integer getIsView() {
        return isView;
    }

    public void setIsView(Integer isView) {
        this.isView = isView;
    }

}
